import React, { FC, useCallback, useContext } from 'react';
import { StoreProVider } from './store/context';
import Header from '../components/Header';
import Journey from './Journey';
import styles from './index.less';

const IndexPage = () => {
  const onBack = useCallback(() => {
    window.history.back();
  }, []);
  return (
    <StoreProVider>
      <Header title="火车票" onBack={onBack} />
      <Journey />
    </StoreProVider>
  );
};

export default IndexPage;
